package com.fastjrun.eladmin.itrms.mapstruct;

import com.fastjrun.eladmin.itrms.dto.ProjectDTO;
import com.fastjrun.eladmin.itrms.dto.ServerDTO;
import com.fastjrun.eladmin.itrms.entity.RmsProject;
import com.fastjrun.eladmin.itrms.entity.RmsServer;
import com.fastjrun.eladmin.itrms.vo.ProjectVO;
import com.fastjrun.eladmin.itrms.vo.ServerVO;
import org.mapstruct.DecoratedWith;
import org.mapstruct.InjectionStrategy;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring", injectionStrategy = InjectionStrategy.CONSTRUCTOR)
@DecoratedWith(RmsProjectMapperDecorator.class)
public interface RmsProjectMapper {

    RmsProjectMapper INSTANCE = Mappers.getMapper(RmsProjectMapper.class);

    ProjectVO toVO(RmsProject entity);

    List <ProjectVO> toVO(List<RmsProject> entityList);

    RmsProject toEntity(ProjectDTO dto);

}
